c# generic enum value to int

91

c# generic enum value to int -

public static int EnumToInt<TValue>(this TValue value) where TValue : Enum
    => (int)(object)value;

Comments

Submit
0 Comments